package com.yiwyn.utils;

import lombok.Data;

import java.util.function.Function;

@Data
public class FunUtils {

    public Function<String, Integer> func;


    public void run(String t) {

        if (func == null) {
            System.out.println("没有方法，不执行");
        }

        Integer apply = func.apply(t);
        System.out.println(apply);
    }

}
